package com.jic.manager.mapper;

import com.jic.manager.entity.Sensitive;
import com.jic.conf.request.SensitiveRequest;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 评论敏感词库表
 * @author : 
 * @email : 
 * @since : 2020-02-06 02:21:47
 * @version : v1.0.0
 */
@Mapper
public interface  SensitiveMapper {

    long insert(SensitiveRequest sensitive);

    long delete(Long id);

    long update(SensitiveRequest sensitive);

    Sensitive queryByPrimaryKey(Long id);

    List<Sensitive> query(Sensitive sensitive);

    List<Sensitive> queryPage(@Param("startIndex") int startIndex, @Param("limit") int limit, @Param("sensitive") SensitiveRequest sensitive);

    long queryPageCount(SensitiveRequest sensitive);
}